package com.moli.iov.base.enums;
/**
 *  审核状态
 * @author whl
 */
public enum AuditStatusEnum {
     NO  (0, "未审核"),
     YES(1, "已审核");

    private int code;
    private String name;

    private AuditStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getCodeName(int code) {
        for (AuditStatusEnum e : AuditStatusEnum.values()) {
            if (e.code == code) {
                return e.name;
            }
        }
        return null;
    }
}
